From 356f0e16d75ecb0c04ca9b2d962d72b907849398 Mon Sep 17 00:00:00 2001
From: August <mingxin.android@gmail.com>
Date: Mon, 28 Nov 2016 15:01:11 +0800
Subject: [PATCH] add scaling_available_freqs sysfs

---
 drivers/cpufreq/sunxi-cpufreq.c | 6 ++++++
 1 file changed, 6 insertions(+)
 mode change 100755 => 100644 drivers/cpufreq/sunxi-cpufreq.c

diff --git a/drivers/cpufreq/sunxi-cpufreq.c b/drivers/cpufreq/sunxi-cpufreq.c
index ba0fbe7..34f7c5a
--- a/drivers/cpufreq/sunxi-cpufreq.c
+++ b/drivers/cpufreq/sunxi-cpufreq.c
@@ -598,6 +598,11 @@ static int sunxi_cpufreq_resume(struct cpufreq_policy *policy)
 
 #endif  /* #ifdef CONFIG_PM */
 
+/* Export freq_table to sysfs */
+static struct freq_attr *sunxi_cpufreq_attr[] = {
+	&cpufreq_freq_attr_scaling_available_freqs,
+	NULL,
+};
 
 static struct cpufreq_driver sunxi_cpufreq_driver = {
 	.name       = "cpufreq-sunxi",
@@ -609,6 +614,7 @@ static struct cpufreq_driver sunxi_cpufreq_driver = {
 	.getavg     = sunxi_cpufreq_getavg,
 	.suspend    = sunxi_cpufreq_suspend,
 	.resume     = sunxi_cpufreq_resume,
+	.attr	    = sunxi_cpufreq_attr,
 };
 
 
